﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>收款记录</title>
    <script src="/js/header.js"></script>
    <link href="/lib/easyui/default/easyui.css" rel="stylesheet" />
    <script src="/lib/date/wdatepicker.js"></script>
    <script type="text/javascript" src="/lib/easyui/jquery.easyui.min.js"></script>
</head>
<body>
    <div class="data-wrap case">
        <form class="form-inline" id="formSearch">
            <div class="data-tool clearfix">
                <div class="pull-left form-inline ">
                </div>
                <div class="pull-right">

                    <div class="input-group input-group-sm">
                        <div class="input-sm"><input name="autoRefresh" type="checkbox" title="10秒自动刷新" /> <label id="time" class="wd100">10秒自动刷新</label></div>
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">订单号：</label>
                        <input class="form-control" name="orderNo" type="text" autocomplete="off">
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">收款姓名：</label>
                        <input class="form-control" name="cardName" type="text" autocomplete="off">
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">客户姓名：</label>
                        <input class="form-control" name="withdrawalAccountName" type="text" autocomplete="off">
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">通知状态：</label>
                        <select class="form-control" name="noticeStatus">
                            <option value="">请选择</option>
                            <option value="1">未通知</option>
                            <option value="2">通知成功</option>
                            <option value="3">通知失败</option>
                            <option value="4">通知中</option>
                            <option value="5">不通知</option>
                            <option value="-1">排除不通知</option>
                        </select>
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">收款时间：</label>
                        <input id="d421" class="Wdate wd175" name="startTime" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'%y-%M-%d'})" />
                        --<input id="d422" class="Wdate wd175 m5_l" name="endTime" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'d421\')}'})" />
                    </div>
                    <button type="button" class="btn btn-default btn-sm active" id="btnSearch"><span class="glyphicon glyphicon-search"></span> 搜索</button>
                    <button type="button" class="btn btn-default btn-sm" id="AdvSearch">高级搜索</button>
                </div>
            </div>
            <!--一高级搜索开始-->
            <div class="AdvSearch">
                <div class="AdvSearchcom collapse">
                    <table>
                        <tbody>
                            <tr>
                                <td>公司名称：</td>
                                <td><input class="form-control" name="companyName" type="text" autocomplete="off"></td>
                                <td>收款银行：</td>
                                <td><input class="form-control" name="bankName" type="text" autocomplete="off"></td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="AdvSearchfooter t_c">
                        <button id="search" class="btn btn-default btn-sm" type="button">立即搜索</button>
                        <button id="cancel" data-dismiss="modal" class="btn btn-default btn-sm" type="button">取消</button>
                    </div>
                </div>
            </div>
        </form>
        <div class="data-easyui data-scroll">
            <div class="data-view">
                <div class="data-div-view table-responsive">
                    <table class="table" id="receiptRecord"></table>
                </div>
            </div>
        </div>
    </div>
    <script src="/js/page/receiptrecord.js?v=201901311140"></script>
    <script type="text/javascript">
        var wait = 10;

        var autoRefresh = $("input[name='autoRefresh']");

        var pageSize = 50;
        $(function () {
            setTime();
            FlashPay.UI.DataAutoHeight();

            FlashPay.UI.Triggerbox({
                btnAdvSearch: '#AdvSearch',
                searchCallBack: function () {
                    doSearch();
                },
                cancelCallBack: function () {

                }
            });

            $("#btnSearch").click(function () {
                FlashPay.UI.DoSearch();
            });

            doSearch();

            $(document).keyup(function (event) {
                var keycode = event.which;
                if (keycode == 13) {
                    FlashPay.UI.DoSearch();
                }
            });

            $(autoRefresh).change(function () {
                time();
            });

            FlashPay.Util.Language();
        });

        //倒时计
        function time() {
            var obj = document.getElementById("time");
            var isauto = $(autoRefresh).is(':checked');
            if (!isauto) {
                obj.innerText = "10秒自动刷新";
                return false;
            }

            if (wait == 0) {
                obj.innerText = "10秒自动刷新";
                wait = 10;
                if (isauto) {
                    setTimeout(function () { time(); }, 1000);
                }
                FlashPay.UI.DoSearch();
            } else {
                obj.innerText = wait + "秒自动刷新";
                wait--;
                setTimeout(function () { time(); }, 1000);
            }
        }

        function Tip_success(word) {
            FlashPay.UI.Tip_success(word);
        }

        function setTime() {
            $("input[name='startTime']").val(FlashPay.Util.GetDateStr(-1) + " 00:00:00");
            $("input[name='endTime']").val(FlashPay.Util.GetDateStr(0) + " 23:59:59");;
        }
    </script>
</body>
</html>